/*
 * @Author: your name
 * @Date: 2021-06-28 09:53:07
 * @LastEditTime: 2021-06-29 16:23:04
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \maoming\src\utils\myajax.js
 */
import $ from 'jquery'

export default function(url, data, cb) {
    $.ajax({
        // 本地环境 线上环境
        url: 'http://192.168.1.103:8891/' + url,
        // url: 'http://101.132.154.10:8891/' + url,
        data: JSON.stringify(data),
        headers: {
            "token": localStorage.getItem("token"),
            "content-Type": "application/json; charset=utf-8"
        },
        type: "post",
        success: cb
    })
}